package com.uniview.enums;

/**
 * 匹配模式
 * 
 * @author admin
 * 
 */
public enum EMatchMode {
	
	/**
	 * 等于
	 */
	EQUAL(" = "),
	
	/**
	 * 不等于
	 */
	UNEQUAL(" != "), 
	
	/**
	 * IN子句
	 */
	IN(" in "), 
	
	/**
	 * Not IN子句
	 */
	NOT_IN(" not in "), 
	
	/**
	 * Like 模糊
	 */
	LIKE(" like "),
	/**
	 * like 左模糊 ： like %key 
	 * */
	LLIKE(" like "),
	/**
	 * like 右模糊 ： like key% 
	 * */
	RLIKE(" like "),
	/**
	 * 大于
	 */
	GT(" > "),
	
	/**
	 * 大于等于
	 */
	GE(" >= "),
	
	/**
	 * 小于
	 */
	LT(" < "), 
	
	/**
	 * 小于等于
	 */
	LE(" <= "), 
	
	/**
	 * 为空
	 */
	IS_NULL(" is null "), 
	
	/**
	 * 非空
	 */
	IS_NOT_NULL(" is not null "), 
	
	/**
	 * Between ... And ...
	 */
	BETWEEN("between");

	private String val = null;

	private EMatchMode(String val) {
		this.val = val;
	}

	public String toString() {
		return val;
	}

}
